interface registerData {
  username: string;
  password: string;
}

interface loginData {
  username: string;
  password: string;
}

interface refreshParam {
  refreshToken:string;
}
import api from "./api";
import request from "../../base/utils/request";
export const Login = (data: loginData) => {
  return request(api.login, {
    params: {},
    data,
  });
};

export const Rigister = (data:registerData) => {
  return request(api.rigister, {
    params: {},
    data,
  });
};

export const RefreshToken = (refreshToken:refreshParam) =>{
  return request(api.refresh,{
    params:{refreshToken}
  })
}